<template>
  <div>
    <el-table
      :data="tableData"
      border
      style="width: 100%"
      :default-sort="{ prop: 'date', order: 'descending' }"
    >
      <el-table-column
        prop="date"
        label="产品图片"
        width="130"
      ></el-table-column>
      <el-table-column
        prop="date"
        label="订单编号"
        width="250"
      ></el-table-column>
      <el-table-column
        prop="name"
        label="产品名称"
        width="180"
      ></el-table-column>
      <el-table-column prop="date" label="数量" width="100"></el-table-column>
      <el-table-column prop="name" label="总价格" width="100"></el-table-column>
      <el-table-column
        prop="name"
        label="创建时间"
        width="180"
      ></el-table-column>
      <el-table-column
        prop="name"
        label="支付状态"
        width="100"
      ></el-table-column>
      <el-table-column
        prop="name"
        label="订单状态"
        width="100"
      ></el-table-column>
      <el-table-column prop="name" label="操作">
        <el-button type="primary" disabled>去支付</el-button>
        <el-button type="danger" disabled>删除</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { getGainVipOorderForm } from "@/api/vipmanager";
export default {
  meta: {
    title: "order",
  },
  data() {
    return {
      tableData: [],
    };
  },
  mounted() {
    this.VIPGainFn();
  },
  methods: {
    async VIPGainFn() {
      let res = await getGainVipOorderForm();
      if (res.data.status === 200) {
        console.log(res.data.data);
        // this.tableData = res.data.data;
      }
    },
  },
};
</script>
<style lang="less" scoped>
/deep/ .cell {
  text-align: center;
}
</style>
